#include "StandardThread.h"
#include "ThreadPool.h"

ThreadPool::ThreadPool(std::shared_ptr<TaskPool> taskPool, const std::uint32_t threads)
    : m_taskPool(taskPool)
{
    for (std::int32_t i = 0; i < threads; ++i)
    {
        std::shared_ptr<StandardThread> thread = std::make_shared<StandardThread>(m_taskPool);
        m_threadPool.push_back(thread);
        thread->start();
    }
}

ThreadPool::~ThreadPool()
{

}

